With root privilege, mpadmin can be used to specify the CPU to handle the fast timer.
The equivalent operation from software uses sysmp(), as shown in Example 6-8.
Example 6-8 : Setting the fasthz CPU
#include <sys/sysmp.h> int setFasthzTo(int cpu) { int ret = sysmp(MP_FASTCLOCK,cpu); if (-1 == ret) perror("sysmp(MP_FASTCLOCK)"); return ret; }
Note: On Challenge/Onyx and POWER-Challenge systems, assigning the fasthz CPU is allowed, but has no effect. Timer interrupts are taken only as required, not at the fasthz rate, and are targeted to the CPU where they were initiated. (See "Timer Management in Challenge, Onyx, and POWER-Challenge".)